<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>登记楼宇信息</title>
  <link rel="shortcut icon" href="城市_city.png" type="image/x-icon">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="component/elementUI/index.css">
  <link rel="stylesheet" href="style/wangeditor.css">
  <link rel="stylesheet" href="style/index.css">
  <style>
    #app{
      height: 90%;
      display: flex;
      flex-wrap: wrap;
    }
    .daoh{
      width: 100%;
      text-align: center;
    }
    .daon{
      margin-left: 550px !important;
    }
    .neir{
      background-color: rgba(red, rgb(150, 255, 150), rgb(181, 181, 255), alpha);
      height: 100%;
      width: 100%
    }
    .cha{
      margin: 20px 50px;
      height: 50px;
    }
    .jil{
      margin-right: 20px;
    }
    .shu{
      width: 11%;
      background-color: rgb(255, 255, 255);
      height: 87.5%;
      float: left;
      margin-right: 10px;
      margin-left: 60px;
      font-size: 16px;
      font-weight: 800;
    }
    .biao{
      height: 85%;
    }
    .kong{
      padding: 10px;
      float: left;
      width: 80%;
      margin-right: 20px;
      margin-left: 20px;
      height: 100%;
      background-color: rgb(255, 255, 255);
    }
    /* .el-input__inner{
      width: 100px;

    } */
    .fenye{
      float:left;  
      margin-top: 18px;
      margin-left: 500px;
      text-align: center;
   }
   .gunajian{
    width: 207px;
    margin-bottom: 15px;
   }
   .danla{
    width: 199px;
   }
   .block{
    margin-right: 117px;
   }
   .zhongn{
    margin-top: 50px;
    margin-left: 100px;
   }
   .xiangxi{  
    width: 300px;
   }
   .dialog-footer{
    margin-right: 200px;
   }
   .xinzt{
    margin: auto;
    width: 65%;
   }

  </style>
</head>
<body>
  <div id="app">
    <div class="daoh">
      <!-- 导航 -->
    <el-menu
    :default-active="activeIndex2"
    class="el-menu-demo"
    mode="horizontal"
    @select="handleSelect"
    background-color="#545c64"
    text-color="#fff"
    active-text-color="#ffd04b">
    <el-menu-item index="1" class="daon">首页</el-menu-item>
    <el-submenu index="2">
      <template slot="title" class="daon">活动</template>
      <el-menu-item index="2-1">投票</el-menu-item>
      <el-menu-item index="2-2">直播</el-menu-item>
      <el-menu-item index="2-3">调研</el-menu-item>
    </el-submenu>
    <el-submenu index="3">
      <template slot="title" class="daon">客户</template>
      <el-menu-item index="3-1">楼宇登记</el-menu-item>
      <el-menu-item index="3-2"><a href="用户登记.html">用户登记</a></el-menu-item>
    </el-submenu>
      <el-menu-item index="4">商品管理</el-menu-item>
      <el-menu-item index="5">售后服务</el-menu-item>
      <el-menu-item index="6">对账系统</el-menu-item>
      <el-menu-item index="7"disabled>消息中心</el-menu-item>
      <el-menu-item index="8">订单管理</el-menu-item>
    </el-menu>

    </div>
    

    <!-- 中间 -->
    <div class="neir">
      <div class="cha">
        <el-form :inline="true" class="demo-form-inline">
          <el-button type="primary" @click="dialogFormVisible = true">新增</el-button>
          <el-button type="primary" class="jil">批量操作</el-button>
        <el-form-item label="审批人">
          <el-input  placeholder="审批人"></el-input>
        </el-form-item>
        <el-form-item label="地址">
          <el-select  placeholder="省份">
            <el-option label="南岗区" value="南岗区"></el-option>
            <el-option label="香坊区" value="香坊区"></el-option>
          </el-select>
          <el-select  placeholder="市区">
            <el-option label="赣水路" value="赣水路"></el-option>
            <el-option label="珠江路" value="珠江路"></el-option>
          </el-select>
          <el-select  placeholder="地区">
            <el-option label="灰熊小区" value="灰熊小区"></el-option>
            <el-option label="玄青小区" value="玄青小区"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="onSubmit">查询</el-button>
          <el-button type="success">导出楼宇信息</el-button>
        </el-form-item>
        </el-form>
      </div>

    <!-- 树 -->
    <div class="shu">
      <el-input
        class="gunajian"
        placeholder="输入关键字进行过滤"
        v-model="filterText">
      </el-input>
      <el-tree
        class="filter-tree"
        :data="data"
        :props="defaultProps"
        default-expand-all
        :filter-node-method="filterNode"
        ref="tree">
      </el-tree>
    </div>
    
    <div class="biao">
      <div class="kong">
    <el-table
    @selection-change="handleSelectionChange"
    :data="tableData.slice((currentPage-1)*pagesize,currentPage*pagesize)"
    border
    style="width: 100%">
    <el-table-column
      fixed
      prop="date"
      label="日期"
      width="200">
    </el-table-column>
    <el-table-column
      prop="sheng"
      label="省份"
      width="180">
    </el-table-column>
    <el-table-column
      prop="shi"
      label="市区"
      width="180">
    </el-table-column>
    <el-table-column
      prop="qu"
      label="地区"
      width="180">
    </el-table-column>
    <el-table-column
      prop="address"
      label="详细地址"
      width="540">
    </el-table-column>
    <el-table-column
            prop="tag"
            label="状态"
            width="110"
            :filters="[{ text: '识别成功', value: '识别成功' }, { text: '未识别', value: '未识别' }]"
            :filter-method="filterTag"
            filter-placement="bottom-end">
        <template slot-scope="scope">
          <el-tag
            :type="scope.row.tag === '未识别' ? 'primary' : 'success'"
            disable-transitions>{{scope.row.tag}}</el-tag>
       </template>
      </el-table-column>
    <el-table-column
      fixed="right"
      label="操作"
      width="100">
      <template slot-scope="scope">
        <div  class="caoz">
          <el-button @click="handleClick(scope.row)" type="text" size="small" class="shibie">去识别</el-button>
          <el-button type="text" size="small" @click="bianji(scope.row)">编辑</el-button>
        </div>
      </template>
    </el-table-column>
  </el-table>


  <div class="fenye">
    <el-pagination
    @size-change="handleSizeChange"
    @current-change="handleCurrentChange"
    :current-page="currentPage"
    :page-sizes="[10, 20, 30, 40]"
    :page-size="pagesize"
    layout="total, sizes, prev, pager, next"
    :total="tableData.length">
  </el-pagination>
  </div>
  </div>
  </div>

  <!-- 新增 -->
    <div>
      <el-dialog title="新楼宇添加" :visible.sync="dialogFormVisible"  class="xinzt">
        <div class="block">
          <span class="demonstration">省/市/区&nbsp;&nbsp;</span>
          <el-cascader
          options="options" clearable
            placeholder="请选择"
            :options="options"
            class="xiangxi"
            v-model="value"
            :props="{ value: 'label' }">
          </el-cascader>
        </div>
      <el-form>
        <el-form-item label="详细地址" class="zhongn">
        <el-input v-model="add.addressx" placeholder="详细地址" class="xiangxi"></el-input>
      </el-form-item>
      </el-form>
      
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogFormVisible = false">取 消</el-button>
        <el-button type="primary" @click="xinque()">确 定</el-button>
      </div>
    </el-dialog> 
    </div>
    

    <div>
      <el-dialog title="编辑楼宇信息" :visible.sync="xiugaishuju"  class="xinzt">
        <div class="block">
          <span class="demonstration">省/市/区&nbsp;&nbsp;</span>
          <el-cascader
            placeholder="请选择"
            :options="options"
            class="xiangxi"
            v-model="value2.ad"
            :props="{ value: 'label' }"
            >
          </el-cascader>
        </div>
        <el-form>
          <el-form-item label="详细地址" class="zhongn">
          <el-input v-model="value2.address" placeholder="详细地址" class="xiangxi"></el-input>
        </el-form-item>
        </el-form>
        <div slot="footer" class="dialog-footer">
          <el-button @click="xiugaishuju = false">取 消</el-button>
          <el-button type="primary" @click="xiuq()">确 定 修 改</el-button>
        </div>
      </el-dialog> 
      </div>
  </div>
  </div>
</body>

<script src="https://cdn.jsdelivr.net/npm/@svgdotjs/svg.js@3.0/dist/svg.min.js"></script>
<script type="text/javascript" src="utils/wangeditor.js"></script>
<script type="text/javascript" src="utils/jquery.min.js"></script>
<script type="text/javascript" src="utils/jquery.cookie.js"></script>
<script type="text/javascript" src="utils/vue.min.js"></script>
<script type="text/javascript" src="utils/vuex.min.js"></script>
<script type="text/javascript" src="component/elementUI/index.js"></script>
<script type="text/javascript" src="component/component.js"></script>
<script type="text/javascript" src="config/config.js"></script>
<script type="text/javascript" src="utils/FileSaver.min.js"></script>
<script type="text/javascript" src="utils/FileSaver.js"></script>
<script type="text/javascript" src="utils/xlsx.full.min.js"></script>
<script type="text/javascript" src="utils/xlsx.core.min.js"></script>
<script type="text/javascript" src="utils/compressor.js"></script>
<script type="text/javascript" src="utils/ID_Validity.js"></script>
<script type="text/javascript" src="utils/utils.js"></script>
<script>
//    * 获取日期 年-月-日 时:分:秒
//  * @returns {}
//  */
function getYMDHMSDate(oDate) {
    if (oDate != null) {
       var data = new Date(oDate);
    } else {
        var data = new Date();
    }
    let m = data.getMonth() + 1;
    let d = data.getDate();
    let H = data.getHours();
    let M = data.getMinutes();
    let S = data.getSeconds();
    if (m < 10) {
        m = "0" + m
    }
    if (d < 10) {
       d = "0" + d
    }
    if (H < 10) {
        H = "0" + H
    }
    if (M < 10) {
       M = "0" + M
    }
    if (S < 10) {
        S = "0" + S
    }
    return data.getFullYear() + "-" + m + "-" + d + " " + H + ":" + M + ":" + S
}
  var a = new Vue({
    el: '#app',
    data() {
      return{
        selectedRow: null,
        currentPage:1, // 默认开始页面
        pagesize:11, // 每页的数据条数
        formLabelWidth: '120px',
        dialogFormVisible: false,
        xiugaishuju:false,
        filterText: '',
        activeIndex2: '3-1',
        value:[],
        value2:{
          sheng:'',
          shi:'',
          qu:'',
          address:''
        },
        defaultProps: {
          children: 'children',
          label: 'label'
        },
        // 从后端获取到的所有表格数据
        sourceTableData: [],
        // 页面要显示的表格数据
        tableData: [{
          date: '2016-05-02',
          sheng: '黑龙江',
          shi: '哈尔滨',
          qu: '香坊',
          address: '上海市普陀区金沙江路 1518 弄',
          tag: '未识别',
        }],
        data: [{
          id: 1,
          label: '黑龙江',
          children: [{
            id: 2,
            label: '哈尔滨',
            children: [{
              id: 3,
              label: '香坊',
              children: [{
              id: 4,
              label: '珠江'
            }],
            }, {
              id: 4,
              label: '南岗',
              children: [{
              id: 3,
              label: '芦家',
            }]},{
              id: 5,
              label: '群力',
              children: [{
              id: 3,
              label: '芦家',
            }]
            },{
              id: 6,
              label: '道外',
              children: [{
              id: 3,
              label: '芦家',
            }]
            },{
              id: 7,
              label: '道里',
              children: [{
              id: 3,
              label: '芦家',
            }]
            }]
          }]
        }],
        options: [{}],
        add:{
          date:'',
          sheng: '',
          shi: '',
          qu: '',
          addressx: '',
          address:'',
          tag: '',
        },
        yihang:[],
      }
  },
  mounted(){
    this.getList()
    $.ajax({
      url:'./city.json',
      type: 'get',
      success:(a) =>{       //  成功返回值     
           this.options = a
          },
          error:(err)=>{          //  失败调用，200交互成功，500服务器出问题了，304权限不够，404不存在，405 get/post请求问题
            console.log(err);
          },
    })
  },
    methods: {
      getList(){
        $.ajax({
          headers:{
            'Content-Type':'application/x-www-form-urlencoded',
            Accesstoken:'eyJraWQiOiJteS1rZXktaWQiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIxNTA0NjAwNjEyMCIsImF1ZCI6ImFwaS5leGFtcGxlLmNvbSIsImlzcyI6ImF1dGguZXhhbXBsZS5jb20iLCJVc2VySW5mbyI6eyJVc2VyTmFtZSI6IjE1MDQ2MDA2MTIwIn0sImV4cCI6MTczMTM3ODEwMSwiaWF0IjoxNzMxMzc0NTAxLCJqdGkiOiI3ZGQ3YTI1NC1hZjI4LTRjZjUtYmZjNi0wMzdiZGVmZDlmNjQifQ.ZYwrr1ETpJCNTy55VObFrmyzYGmhri95soouGqGmVpweHMHsE2j7buSdCJDP0mxlNnhu4e8Kk0pK8Sa4pHAddT8RVD5PXl2I2gCDyzCcI5hSmxbiuNETTJrXqAtTw4WVCHWW4H3VHHfC1RdH0WRM0dfWalUrZ8qUPDRQcl0BXiiZ0wAQ8BW3LoZlFPddg5ShPOt6BpSBg71oo_pGAMY3QxY6rd5ibh4R347e2cc8xVf2OMAKFVXtjX_yZFKIW8A_MU0InvCJGzXcNT8jUR2xkTAsOIAp-OYO_Tsppn-pKXgFvRTvBQHN-Yx9BH74QqXH6mun3Kdcky0q31Nt3WcV0w',
          },
          url: 'https://service2.ediblefungus.cn/zhaobo/generalBusiness/generalQueryByTableNameWithOriginal',
            type: 'POST',
            data:{       
              RowAmount: 10,            //  传给后台的参数
              Data:'communitychart',
              Condition:"tag='未识别'"
          },
          success:(communitychart)=>{
            this.tableData = communitychart
          },
       })
      },
      handleSizeChange(val){
		      console.log(`每页 ${val} 条`);
  	      this.pagesize = val
      },
      handleCurrentChange(val){
      		console.log(`当前页：${val} `);
        	this.currentPage = val
      },
      handleSelect(key, keyPath) {
        console.log(key, keyPath)
      },
      handleSelectionChange(selection) {
        console.log(selection);
        
      // if (selection.length > 0) {
      //   this.selectedRow = selection[0]; // 假设只选择一行
      // }
    },
    handleDialogOpen() {
      // 在这里可以做其他的初始化操作
    },
      onSubmit() {
        console.log('submit!');
      },
      filterNode(value, data) {
        if (!value) return true;
        return data.label.indexOf(value) !== -1;
      },
      // 去识别
      handleClick(row) {
        console.log(row.address);
        window.location.href = './识别.html?address='+row.address

        //  查到修改数据
         $.ajax({
          headers:{
            'Content-Type':'application/x-www-form-urlencoded',
            Accesstoken:'eyJraWQiOiJteS1rZXktaWQiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIxNTA0NjAwNjEyMCIsImF1ZCI6ImFwaS5leGFtcGxlLmNvbSIsImlzcyI6ImF1dGguZXhhbXBsZS5jb20iLCJVc2VySW5mbyI6eyJVc2VyTmFtZSI6IjE1MDQ2MDA2MTIwIn0sImV4cCI6MTczMTEyMzQ5NSwiaWF0IjoxNzMxMTE5ODk1LCJqdGkiOiIyNDQ5ZmRiYS0wN2I3LTRhYjItOWU2My01MDZjMTZjYzg2N2QifQ.EWsxHStHI5JQHBkrhAKXkmM3-j_bexlE-zQN8LaKUuvYYOPxV6qPcLpSmHs0pbbHfkfeleU4gorL3fy5rQWMmaZOav5rV_dGUpNLcTozGPHWr3s7mT0VkZx80M2B1ebBFA_axN17zWEtfx6Yie-1nFXF9YX1gxuDThepZ3fkcjZk3HjjHlOhmln-8AcEYZK28xF07MIB2NDPS3u4Rs7AJC-SBsRZuEBPYUCQPsxjW2bIeiN9_Ou0yRaeVet0uI0HxTEn9vgftTDW9uN-ba_tK6AZDfAJVvIDQUPaHLEprwRiqOZXNFgoScz2wSn6DbXdgWO9icL_T97QKt0d3Cf7wg',
          },
          url: 'https://service2.ediblefungus.cn/zhaobo/generalBusiness/generalQueryByTableNameWithOriginal',
            type: 'POST',
            data:{       
              RowAmount: 10,            //  传给后台的参数
              Data:'communitychart',
              Condition:"id='"+row.id+"'"
          },
          success:(row)=>{
            console.log(row,'row');
            
            console.log(row[0].tag,'row[0]');
            row[0].tag = '识别成功'
            console.log(row[0].tag);
            
              $.ajax({
                    headers:{             
                      AccessToken:'eyJraWQiOiJteS1rZXktaWQiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIxNTA0NjAwNjEyMCIsImF1ZCI6ImFwaS5leGFtcGxlLmNvbSIsImlzcyI6ImF1dGguZXhhbXBsZS5jb20iLCJVc2VySW5mbyI6eyJVc2VyTmFtZSI6IjE1MDQ2MDA2MTIwIn0sImV4cCI6MTczMTEyMzQ5NSwiaWF0IjoxNzMxMTE5ODk1LCJqdGkiOiIyNDQ5ZmRiYS0wN2I3LTRhYjItOWU2My01MDZjMTZjYzg2N2QifQ.EWsxHStHI5JQHBkrhAKXkmM3-j_bexlE-zQN8LaKUuvYYOPxV6qPcLpSmHs0pbbHfkfeleU4gorL3fy5rQWMmaZOav5rV_dGUpNLcTozGPHWr3s7mT0VkZx80M2B1ebBFA_axN17zWEtfx6Yie-1nFXF9YX1gxuDThepZ3fkcjZk3HjjHlOhmln-8AcEYZK28xF07MIB2NDPS3u4Rs7AJC-SBsRZuEBPYUCQPsxjW2bIeiN9_Ou0yRaeVet0uI0HxTEn9vgftTDW9uN-ba_tK6AZDfAJVvIDQUPaHLEprwRiqOZXNFgoScz2wSn6DbXdgWO9icL_T97QKt0d3Cf7wg',
                      'Content-Type':'application/x-www-form-urlencoded',
                    },
                    url: 'https://service2.ediblefungus.cn/zhaobo/generalBusiness/generalSave',
                    type: 'POST',
                    data:{                   //  传给后台的参数
                      Data:JSON.stringify({"Modify":{"communitychart":row}}) ,
                    },
                    success:(row)=>{
                      console.log(row);
                      if (row.Status =='success') {
                        this.getList();//
                      }
                    },
                })
          },
        })
      },
      filterTag(value, row) {
        return row.tag === value;
      },
      handleChange(value) {
        console.log(value);
      },

      xinque(){
        this.dialogFormVisible = false;
        this.add.sheng = this.value[0]
        this.add.shi = this.value[1]
        this.add.qu = this.value[2]
        this.add.address = this.add.sheng + this.add.shi + this.add.qu + this.add.addressx
        this.add.tag = '未识别'
        this.add.date = getYMDHMSDate()
        console.log(this.add,'add');
        this.tableData.push(this.add)


        // 添加
        $.ajax({
          headers:{
            'Content-Type':'application/x-www-form-urlencoded',
            Accesstoken:'eyJraWQiOiJteS1rZXktaWQiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIxNTA0NjAwNjEyMCIsImF1ZCI6ImFwaS5leGFtcGxlLmNvbSIsImlzcyI6ImF1dGguZXhhbXBsZS5jb20iLCJVc2VySW5mbyI6eyJVc2VyTmFtZSI6IjE1MDQ2MDA2MTIwIn0sImV4cCI6MTczMTA3Nzc3MiwiaWF0IjoxNzMxMDc0MTcyLCJqdGkiOiI1OGM3Nzk4Zi1hN2JmLTRmNGMtYjAwNi02MTYyMzc4MGVlODkifQ.cSJ24KCk5eEY5W7hepKw9PXUq-aEmON_LWY2JaHcu3qDvlEOiF4kHALvc-PhIvubC2u0KJDYkZR676O4OVLSxFk8m5CV-cb2FBt786EcPxUyuhnpKBQzn-g2MVbJmcvP6Nc6B9v76J8pC1X7XNnSXWkSR6qzPF2SSslK5JR52OOCCrtglOkkPqjp0FgdcoFIojDtnNgG9oobtARjzebNcxq6wmojDkTOrDGiIvIWOGWbW_Dzyiyu-eri2-3HxUcAf43dTBaZw-9WayWqEYwdqkk7gkkxAAJY8ItmKvngvHweQZ8WOtLX3cE_--c76Cv38yURxEiIrUutNmx-CPEVtw',
          },
          url: 'https://service2.ediblefungus.cn/zhaobo/generalBusiness/generalSave',
            type: 'POST',
            data:{   
            Data:JSON.stringify({"Add":{"communitychart":this.tableData}}) ,
          },
          success:(tableData)=>{  
            console.log(tableData);
            
            if(tableData.Status == 'success'){
              this.getList();
            }
            console.log(tableData);
          },
          error:(err)=>{          //  失败调用，200交互成功，500服务器出问题了，304权限不够，404不存在，405 get/post请求问题
            console.log(err);
          },
          dataType:'json' //转数据格式  
        })
        },
        // 编辑按钮
        bianji(row){
            this.xiugaishuju = true
            this.value2 = row
            this.value2.ad = [row.sheng, row.shi, row.qu]
        },
        // 编辑页面
        xiuq(){
          this.xiugaishuju = false;

          console.log(this.yihang);
          console.log(this.value2,'kanakn');

           // 查到修改数据
        $.ajax({
          headers:{
            'Content-Type':'application/x-www-form-urlencoded',
            Accesstoken:'eyJraWQiOiJteS1rZXktaWQiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIxNTA0NjAwNjEyMCIsImF1ZCI6ImFwaS5leGFtcGxlLmNvbSIsImlzcyI6ImF1dGguZXhhbXBsZS5jb20iLCJVc2VySW5mbyI6eyJVc2VyTmFtZSI6IjE1MDQ2MDA2MTIwIn0sImV4cCI6MTczMTEyMzQ5NSwiaWF0IjoxNzMxMTE5ODk1LCJqdGkiOiIyNDQ5ZmRiYS0wN2I3LTRhYjItOWU2My01MDZjMTZjYzg2N2QifQ.EWsxHStHI5JQHBkrhAKXkmM3-j_bexlE-zQN8LaKUuvYYOPxV6qPcLpSmHs0pbbHfkfeleU4gorL3fy5rQWMmaZOav5rV_dGUpNLcTozGPHWr3s7mT0VkZx80M2B1ebBFA_axN17zWEtfx6Yie-1nFXF9YX1gxuDThepZ3fkcjZk3HjjHlOhmln-8AcEYZK28xF07MIB2NDPS3u4Rs7AJC-SBsRZuEBPYUCQPsxjW2bIeiN9_Ou0yRaeVet0uI0HxTEn9vgftTDW9uN-ba_tK6AZDfAJVvIDQUPaHLEprwRiqOZXNFgoScz2wSn6DbXdgWO9icL_T97QKt0d3Cf7wg',
          },
          url: 'https://service2.ediblefungus.cn/zhaobo/generalBusiness/generalQueryByTableNameWithOriginal',
            type: 'POST',
            data:{       
              RowAmount: 10,            //  传给后台的参数
              Data:'communitychart',
              Condition:"id='"+this.value2.id+"'"
          },
          success:(value2)=>{
              value2 = this.value2.ad
              
              console.log(this.value2.ad,'chengad');
              console.log(value2,'value2');
              console.log(this.value2,'thisde');
              this.value2.sheng = value2[0]
              this.value2.shi = value2[1]
              this.value2.qu = value2[2]
              this.value2.address = this.value2.address
              this.yihang.push(this.value2)
              console.log(this.yihang);
            // 修改提交
            $.ajax({
                  headers:{    
                    AccessToken:'eyJraWQiOiJteS1rZXktaWQiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIxNTA0NjAwNjEyMCIsImF1ZCI6ImFwaS5leGFtcGxlLmNvbSIsImlzcyI6ImF1dGguZXhhbXBsZS5jb20iLCJVc2VySW5mbyI6eyJVc2VyTmFtZSI6IjE1MDQ2MDA2MTIwIn0sImV4cCI6MTczMTA3Nzc3MiwiaWF0IjoxNzMxMDc0MTcyLCJqdGkiOiI1OGM3Nzk4Zi1hN2JmLTRmNGMtYjAwNi02MTYyMzc4MGVlODkifQ.cSJ24KCk5eEY5W7hepKw9PXUq-aEmON_LWY2JaHcu3qDvlEOiF4kHALvc-PhIvubC2u0KJDYkZR676O4OVLSxFk8m5CV-cb2FBt786EcPxUyuhnpKBQzn-g2MVbJmcvP6Nc6B9v76J8pC1X7XNnSXWkSR6qzPF2SSslK5JR52OOCCrtglOkkPqjp0FgdcoFIojDtnNgG9oobtARjzebNcxq6wmojDkTOrDGiIvIWOGWbW_Dzyiyu-eri2-3HxUcAf43dTBaZw-9WayWqEYwdqkk7gkkxAAJY8ItmKvngvHweQZ8WOtLX3cE_--c76Cv38yURxEiIrUutNmx-CPEVtw',
                    'Content-Type':'application/x-www-form-urlencoded',
                  },
                  url: 'https://service2.ediblefungus.cn/zhaobo/generalBusiness/generalSave',
                  type: 'POST',
                  data:{                   //  传给后台的参数
                    Data:JSON.stringify({"Modify":{"communitychart":this.yihang}}),
                  },
                  success:(yihang)=>{
                    console.log(yihang);
                    if(value2.Status == 'success'){
                      this.getList();
                    }
                  },
              })
            },})
            },
              error:(err)=>{          //  失败调用，200交互成功，500服务器出问题了，304权限不够，404不存在，405 get/post请求问题
        }

    }
})

</script>
</html>